package com.example.easybuy.service;

import com.example.easybuy.entity.CarDetail;
import com.example.easybuy.entity.Product;
import com.example.easybuy.util.AjaxResult;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface ProductService {
    PageInfo<Product> byPage(Map<String, Object> map);

    boolean delPro(Map<String,Object> map) throws Exception;

    AjaxResult addPro(Map<String,Object> map, MultipartFile fileItem) throws Exception;

    AjaxResult updatePro(Map<String, Object> pro, MultipartFile fileItem) throws Exception;

    Product getPro(Map<String ,Object> map);

    PageInfo<Product> elByPage(Map<String,Object> map);
}